package cn.elane.kibana.demo.core.index.controller;

import cn.elane.kibana.demo.global.render.R;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
public class IndexController {

	@RequestMapping("clear")
	public void clear() {

	}

	@RequestMapping("toPage2")
	public R toPage(@RequestParam("name") String pageName) {
		System.err.println(pageName);
		return R.success(pageName);
	}

}
